package com.site.user.service;

import java.util.List;
import java.util.Set;

import com.site.data.IBaseDAO;
import com.site.user.pojo.TbGroup;
import com.site.user.pojo.TbRole;
import com.site.user.pojo.TbUser;

public interface ITbGroupService  extends IBaseDAO<TbGroup>{

	/**
	 * @description 取用户的角色
	 * @param instance
	 * @param idresouce
	 * @return
	 */
	public abstract List<Object[]> getUserRole(TbUser instance, String idresouce);

	/**
	 * @description 取用户系统
	 * @param instance
	 * @return
	 */
	public abstract List<Object[]> getUserSystem(TbUser instance);

	/**
	 * @description 组和角色关联
	 * @param idGroup
	 * @param idRole
	 * @return
	 */
	public abstract String groupRoleSave(String idGroup, String idRole);

	/**
	 * @description  获取组列表
	 * @param instance
	 * @return
	 */
	public abstract List<TbGroup> getGroupList(TbUser instance);

	/**
	 * @description 获取组对应的角色
	 * @param idGroups
	 * @return
	 */
	public abstract Set<TbRole> getGroupRoles(String idGroups);
}
